package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.vo.TSensitiveMessage;
import com.ruoyi.system.dto.SensitiveMessageDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TSensitivewordMapper;
import com.ruoyi.system.domain.TSensitiveword;
import com.ruoyi.system.service.ITSensitivewordService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TSensitivewordServiceImpl implements ITSensitivewordService 
{
    @Autowired
    private TSensitivewordMapper tSensitivewordMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public TSensitiveword selectTSensitivewordById(Long id)
    {
        return tSensitivewordMapper.selectTSensitivewordById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tSensitiveword 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TSensitiveword> selectTSensitivewordList(TSensitiveword tSensitiveword)
    {
        return tSensitivewordMapper.selectTSensitivewordList(tSensitiveword);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tSensitiveword 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTSensitiveword(TSensitiveword tSensitiveword)
    {
        return tSensitivewordMapper.insertTSensitiveword(tSensitiveword);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tSensitiveword 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTSensitiveword(TSensitiveword tSensitiveword)
    {
        return tSensitivewordMapper.updateTSensitiveword(tSensitiveword);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTSensitivewordByIds(Long[] ids)
    {
        return tSensitivewordMapper.deleteTSensitivewordByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTSensitivewordById(Long id)
    {
        return tSensitivewordMapper.deleteTSensitivewordById(id);
    }

    @Override
    public List<TSensitiveMessage> hitListPage(SensitiveMessageDTO dto) {
        return tSensitivewordMapper.selectSensitiveMessagePage(dto);
    }

    @Override
    public Integer getCount() {
        return tSensitivewordMapper.getCountByMessage();
    }
}
